package com.thb.user.service;

import com.thb.user.model.UserCode;

public interface IUserCodeService {
	
	public boolean add(String passwd,byte type,String usercode);

	UserCode findInfoByUsercode(String usercode);
	
	UserCode findInfoByUid(int uid);
	
	boolean updatePasswd(int uid, String passwd);

	String getRandom(String usercode);

	boolean checkRandom(String usercode, String ran);

	public String login(String usercode, String passwd, byte utyper);
	
	UserCode getBySid(String sid);

}
